﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Windows.Forms;

namespace WordTool
{
    public class AppSetting
    {
        private bool _AutoPlayWord = true;
        private string _SpeechPath = "default";
        private double _Opacity = 0.9;
        private int _SleepTime = 10;

        [TypeConverterAttribute(typeof(OpacityConverter))]
        public double Opacity
        {
            get
            {
                return _Opacity;
            }
            set
            {
                _Opacity = value;
            }
        }

        public bool AutoPlayWord
        {
            get
            {
                return _AutoPlayWord;
            }
            set
            {
                _AutoPlayWord = value;
            }
        }
        public string SpeechPath
        {
            get
            {
                return _SpeechPath;
            }
            set
            {
                _SpeechPath = value;
            }
        }

        public int SleepTime
        {
            get
            {
                return _SleepTime;
            }
            set
            {
                _SleepTime = value;
            }
        }
    }
}
